from PyQt5.QtWidgets import QMainWindow
from qgis._core import QgsApplication

import gui as GUI
from Defined_slots.set_testversion import *  # 槽函数
from UI.testwin import Ui_MainWindow


class MyWindow(QMainWindow, Ui_MainWindow):
    def __init__(self, app=QgsApplication, parent=None):
        # 初始化UI
        super(MyWindow, self).__init__(parent)
        self.app = app
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)

        # 装载模块
        GUI.GUIPreview.load_preview(self)
        # 自定义槽函数的调用

    def set_testversion(self):
        slot_set_testversion(self)
